package com.wanyin.cloud.common.response;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 返回枚举
 */
@Getter
@AllArgsConstructor
public enum STATE {
    SystemErr(0, "系统错误"),
    Success(100, "操作成功"),
    ParamErr(101, "参数错误"),
    InfoErr(102, "信息错误"),
    Error(103, "操作失败"),
    PermissionDenied(104, "没有权限"),
    PassportErr(105, "用户校验失败"),
    LoginError(106, "登入过期"),
    UploadError(107, "上传失败"),
    DataNoCheckPass(108, "数据不完整无法提交提交或审核，需显示问题数据"),
    ServiceConnectRefused(109, "服务连接异常，请稍后重试"),
    AddressNotFound(110, "访问地址不存在，请稍后重试"),
    RouteServiceError(111, "请求服务异常，请稍后重试"),
    UserSqueeze(112, "账号异地登录，请稍后重试"),
    Redirect(113, "页面跳转"),
    PageError(114, "页面异常"),
    BusinessError(115, "业务异常"),
    SystemBusy(116, "系统繁忙，请稍后重试");

    private final Integer state;
    private final String msg;


}